package com.education.platform.common.service;


import com.education.platform.common.dao.entity.BaseDo;

import java.util.List;

public interface BaseService<T extends BaseDo> {

    boolean insert(T dto);

    boolean insertInBatch(List<T> dtoList);

    boolean updateById(T dto);
    boolean updateInBatch(List<T> dtoList);

    boolean deleteById(T dto);

     boolean deleteByIds(List<Integer> ids);

    List<T> getList(T query);

    T get(T dto);

     T getById(Integer pk);

     List<T> getListByIds(List<Integer> pkList);


}
